import request from '@/utils/request'
// 登录
export function login(data) { return request({ url: '/api/login', method: 'post', data }) }
// 验证码
export function captchaImage(data) { return request({ url: '/api/captchaImage', method: 'get', data }) }
// 获取用户信息
export function getInfo(token) { return request({ url: `/api/getRouters?token=${token}`, method: 'get' }) }
// 退出
export function logout(userId) { return request({ url: `/mm/common/logout/${userId}`, method: 'post' }) }
// 用户信息查看
export function userList(params) { return request({ url: '/api/system/user/list', method: 'get', params }) }
// 用户信息增添
export function userAdd(data) { return request({ url: '/api/system/user', method: 'post', data }) }
export function userEdit(data) { return request({ url: '/api/system/user/edit', method: 'post', data }) }
export function userDel(params) { return request({ url: '/api/system/user/deleteOneUser', method: 'get', params }) }
// 用户信息删除
//用户部门
export function department_tree_tree() { return request({ url: '/api/system/dept/roleDeptTreeselect1', method: 'get'}) }

//用户设置角色
export function set_user_role(data) { return request({ url: '/api/system/user/setTheRole ', method: 'post', data }) }
//用户角色管理
export function roles_tree_tree() { return request({ url: '/api/system/role/roleListByLogin ', method: 'get'}) }
//用户修改回显
export function user_user_display(params) { return request({ url: '/api/system/user/getUserDetails', method: 'get',params}) }
//用户禁用
export function user_user_prohibit(data) { return request({ url: '/api/system/user/disableStartup', method: 'post',data}) }
//用户搜索
export function getUserSearch(params) { return request({ url: '/api/system/user/list', method: 'get',params}) }
 
/*****博**/
export function getUserInfo(params) { return request({ url: "/api/system/role/list", method: 'get',params}) }
//删除用户
export function deleteUser(data) { return request({ url: "/api/system/role/delremove1", method: 'post',data}) }
/*********获取用户的权限************/
export function getUserJurisdiction(data) { return request({ url: "/api/system/menu/roleMenuTreeselect", method: 'get',data}) }
/**********获取用户的权限**********/
/*******添加角色************/
export function add_role_role(data) { return request({ url: "/api/system/role", method: 'post',data}) }
/*******添加角色**********/

/*******添加角色里的权限**********/

export function get_role_jurisdiction() { return request({ url: "/api/system/menu/treeselect1", method: 'get'}) }
// export function get_role_jurisdiction() { return request({ url: "/api/getRouters", method: 'get'}) }
/********添加角色里的权限********/
/******修改角色接口*********/

export function modify_role_role(data){ return request({ url: "/api/system/role/addSysRole", method: 'post',data}) }
/******修改角色接口**********/
/*******修改角色******/
export function getModifyUserInfo(data) { return request({ url: "/api/system/role/queryOneByRoleId", method: 'post',data}) }
// 角色搜索
export function getRoleSearch(params) { return request({ url: "/api/system/role/list", method: 'get',params}) }

/**********组织机构**************/
export function get_organization_tree(data) { return request({ url: "/api/system/dept/roleDeptTreeselect1", method: 'get',data}) }
/********加载组织机构的列表*********/
// export function get_organization_list(data) { return request({ url: "/api/system/dept/getDeptInfo", method: 'get',data}) }
export function get_organization_list(params) { return request({ url: "/api/system/dept/getDeptInfo", method: 'get',params}) }
/***********加载组织机构的列表***********/
/*********组织机构修改***********/
export function modify_organization(data) { return request({ url: "/api/system/dept/edit", method: 'post',data}) }
/*********组织机构修改**********/
/***********组织机构禁用************/
export function prohibit_organization(data) { return request({ url: "/api/system/dept/changeStatus", method: 'post',data}) }
//组织机构新增

export function add_organization(data) { return request({ url: "/api/system/dept/addDept", method: 'post',data}) }
/*********删除*******/
export function delect_organization(params) { return request({ url: "/api/system/dept/deleteDept", method: 'get',params}) }
/*****删除*******/
/*** 组织机构搜索***/
export function delectSearch(data) { return request({ url: "/api/system/dept/list", method: 'post',data}) }

/********组织机构************/

/*********菜单管理************/

//菜单列表展示
// export function get_menu_list() { return request({ url: "/api/system/menu/list", method: 'get'}) }
export function get_menu_list(params) { return request({ url: "/api/system/menu/menuListByMenuId", method: 'get',params}) }
//添加菜单
export function add_menu(data) { return request({ url: "/api/system/menu/addMenu", method: 'post',data}) }
//菜单数据回显
export function get_echo_display(params) { return request({ url: "/api/system/menu/getMenuInfo", method: 'get',params}) }
//菜单修改
export function modify_menu_menu(data) { return request({ url: "/api/system/menu/edit", method: 'post',data}) }
//菜单删除
export function delect_menu_menu(params) { return request({ url: "/api/system/menu/deleteMenu", method: 'get',params}) }
//菜单模糊搜索
export function menuListSearch(params) { return request({ url: "/api/system/menu/menuList", method: 'get',params}) }
/*********菜单管理**********/
//获取菜单的树
export function get_menu_menu_tree(params) { return request({ url: "/api/system/menu/treeselect", method: 'get',params}) }
/***博****/
/********应用管理***********/
	//查询应用类型列表
	export function get_type_list(params) { return request({ url: "/api/apply/applyType/getApplyTypeListPage", method: 'get',params}) }
	//修改接口
	export function modify_type_application(data) { return request({ url: "/api/apply/applyType/updateApplyType", method: 'put',data}) }
	//修改回显接口
	export function get_application_display(params) { return request({ url: "/api/apply/applyType/getApplyTypeId", method: 'get',params}) }
	//查询首页菜单下拉列表
	export function get_type_drop_down() { return request({ url: "/api/apply/applyType/getHomePageList", method: 'get'}) }
	//新增应用类型
	export function add_type_application(data) { return request({ url: "/api/apply/applyType/addApplyType", method: 'post',data}) }
	//禁用应用类型
	export function prohibit_type_application(params) { return request({ url: "/api/apply/applyType/disableEnabledApplyType", method: 'get',params}) }
	/*********应用类别*************/
	
	/*******查询应用类别列表*********/
	export function get_category_list(params) { return request({ url: "/api/apply/applyCategory/getApplyCategoryListPage", method: 'get',params}) }
	/**********查询应用类型下拉*************/
	export function get_category_type_drop_down() { return request({ url: "/api/apply/applyType/getApplyType", method: 'get'}) }
	/********新增应用类别********/
	export function add_category_application(data) { return request({ url: "/api/apply/applyCategory/addApplyCategory", method: 'post',data}) }
	/********应用类别回显***********/
	export function display_category_application(params) { return request({ url: "/api/apply/applyCategory/findApplyCategoryId", method: 'get',params}) }
	//修改数据
	export function modify_category_application(data) { return request({ url: "/api/apply/applyCategory/updateApplyCategory", method: 'post',data}) }
	//类别禁用
	export function prohibit_category_application(params) { return request({ url: "/api/apply/applyCategory/disableEnabledCategory", method: 'get',params}) }
	/*******应用类别*********/
	
	/************应用管理大类********************/
				
	export function get_application_application(params) { return request({ url: "/api/apply/applyDetails/getApplyList", method: 'get',params}) }			
	//新增的应用类别
	export function application_category_application(params) { return request({ url: "/api/apply/applyCategory/getApplyCategoryId", method: 'get',params}) }
	/****新增接口新增接口*******/
	export function add_application_category_application(data) { return request({ url: "/api/apply/applyDetails/addApplyDetails", method: 'post',data}) }
	/******新增接口接口********/
	/********删除接口**********/
	
	export function delect_delect_application(data) { return request({ url: "/api/apply/applyDetails/deleteApplyDetails", method: 'post',data}) }
	/*******修改回显接口**********/
	export function display_display_application(params) { return request({ url: "/api/apply/applyDetails/findApplyDetailsId", method: 'get',params}) }
	/**************修改接口******************/
	export function modify_modify_application(data) { return request({ url: "/api/apply/applyDetails/updateApplyDetails", method: 'post',data}) }
	/********修改接口*********/
	/*****应用管理禁用*****/
	export function prohibit_prohibit_application(params) { return request({ url: "/api/apply/applyDetails/disableEnabledDetails", method: 'get',params}) }
	/*****应用管理禁用****/
	/********审核查询接口**********/
	export function examine_examine_application(params) { return request({ url: "/api/apply/applyDetails/checkApplyStatus", method: 'get',params}) }
	/********审核查询接口**********/
	/*************应用管理大类******************/
	/**************模糊查询搜索*****************/
	export function search_search_application(params) { return request({ url: "/api/apply/applyDetails/getApplyList", method: 'get',params}) }
	/**************模糊查询搜索****************/
/********应用管理***********/
/*******王玲********/
//栏目修改回显
export function findById(params) { return request({ url: "/api/cloum/findById", method: 'get',params}) }
//咨询栏目
export function newsList(params) { return request({ url: "/api/cloum/findCloum", method: 'get',params}) }
//栏目添加
export function newsAdd(data) { return request({ url: "/api/cloum/addCloum", method: 'post',data}) }
//栏目修改
export function newsEdit(data) { return request({ url: "/api/cloum/editCloum", method: 'post',data}) }
//删除用户
export function newDeleteUser(params) { return request({ url: "/api/cloum/delCloum", method: 'get',params}) }
//新闻修改回显
export function updateDetail(params) { return request({ url: "/api/news/detail", method: 'get',params}) }

//新闻列表
export function listNews(params) { return request({ url: "/api/news/list", method: 'get',params}) }
//新闻添加
export function addList(data) { return request({ url: "/api/news/add", method: 'post',data}) }
//新闻修改
export function updateNews(data) { return request({ url: "/api/news/update", method: 'post',data}) }
//新闻删除
export function deleteNews(params) { return request({ url: "/api/news/delete", method: 'get',params}) }
//新闻搜索
export function listNewsSearch(params) { return request({ url: "/api/news/list", method: 'get',params}) }
//新闻审核
export function AuditNews(data) { return request({ url: "/api/news/update", method: 'post',data}) }


//公告列表
export function noticeList(data) { return request({ url: "/api/noticePc/getNoticeList", method: 'post',data}) }
//公告添加
export function addNotice(data) { return request({ url: "/api/noticePc/addNotice", method: 'post',data}) }
//公告添加tree
export function roleDeptTreeselect1s() { return request({ url: "/api/system/dept/roleDeptTreeselect1", method: 'get'}) }
//公告修改
export function updateNotice(data) { return request({ url: "/api/noticePc/updateNotice", method: 'post',data}) }
//公告修改回显
export function getNoticeId(data) { return request({ url: "/api/noticePc/getNoticeId", method: 'post',data}) }
//审核回显
export function getNoticeId_one(data) { return request({ url: "/api/noticePc/getNoticeById", method: 'post',data}) }
//审核
export function to_examine_NoticeId(data) { return request({ url: "/api/noticePc/checkNoticeStatus", method: 'post',data}) }
//拒绝
//公告删除
export function deleteNotice(params) { return request({ url: "/api/noticePc/deleteNotice", method: 'get',params}) }
//公告审核
export function AuditNotice(params) { return request({ url: "/api/noticePc/getNoticeId1", method: 'get',params}) }
//公告审核和公告返回的参数
export function checkNoticeStatus(data) { return request({ url: "/api/noticePc/checkNoticeStatus", method: 'post',data}) }
//公告搜索
export function noticeSearch(data) { return request({ url: "/api/noticePc/getNoticeList", method: 'post',data}) }
